<div class="sidebox">
<h2><span><?php _e('Inscription'); ?></span></h2>
<div>
<ul><li><a href="/blog/?page_id=89">Recevoir les mises à jour</a></li></ul>
</div>
</div>
﻿
<div class="sidebox">
    <h2><span><?php _e('Th&egrave;mes'); ?></span></h2>
    <ul>
        <?php if (function_exists('wp_theme_switcher')) { wp_theme_switcher('dropdown'); } ?>
    </ul>
</div>

<div class="sidebox">
    <h2><span><?php _e('Cat&eacute;gories'); ?></span></h2>
    <ul><?php wp_list_cats('sort_column=name'); ?></ul>
</div>

<div class="sidebox">
<h2><span><?php _e('Derniers Commentaires'); ?></span></h2>
<ul><?php
$comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5");
if ( $comments ) {
foreach ($comments as $comment) {
	echo '<li>' . sprintf(__('%1$s sur "%2$s"'), $comment->comment_author, '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>');
	//edit_comment_link(__("Edit"), ' <small>(', ')</small>'); 
	echo '</li>';
}
}
?></ul>
</div>

<div class="sidebox">
    <h2><span><?php _e('Recherche'); ?></span></h2>
    <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <div>
        <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="searchbox" />
        <input type="submit" id="searchbutton" value="search" />
    </div>
    </form>
</div>

<div class="sidebox">
    <h2><span><?php _e('Nos liens'); ?></span></h2>
    <ul><?php get_links(7, '<li>', '</li>', '', FALSE, 'name', FALSE); ?></ul>
</div>

<div class="sidebox">
    <h2><span><?php _e('Actions'); ?></span></h2>
    <ul>
        <?php wp_register(); ?>
        <li><?php wp_loginout(); ?></li>
    </ul>
</div>

<div class="sidebox">
    <h2><span><?php _e('Archives'); ?></span></h2>
    <ul><?php wp_get_archives('type=monthly'); ?></ul>
</div>
